<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.springside.core.Constants"%>
<%@ include file="/common/taglibs.jsp"%>
<fmt:message key="docex_portal_label1" var="docex_portal_label1" />
<fmt:message key="docex_portal_label2" var="docex_portal_label2" />
<fmt:message key="docex_portal_label3" var="docex_portal_label3" />
<fmt:message key="docex_portal_label4" var="docex_portal_label4" />
<fmt:message key="docex_portal_label5" var="docex_portal_label5" />

<ff:boxportlet header="${knowledgeCatalogy.name}">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
	<tr>
		<td valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tbl_left_ico">
          <c:forEach items="${knowledges}" var="knowledge" begin="0" end="4"> 
          <tr>
							<td>
								<A href="<c:url value="/modules/knowledge/knowledges.do?method=viewKnowledges&cid=${knowledgeCatalogy.id}&id=${knowledge.id}"/>" 
								title="${knowledge.title}"> 
								<c:if test="${fn:length(knowledge.title)> param.y}">
		                	${fn:substring(knowledge.title,0, param.y)}...
		                </c:if>
		                <c:if test="${fn:length(knowledge.title)<= param.y}">
		                	${knowledge.title}
		                </c:if> </a>
		
						</td>
						</tr>
					</c:forEach>
					<c:if test="${fn:length(knowledges) < 1}">
						<tr>
							<td></td>
						</tr>
					</c:if>
					<c:if test="${fn:length(knowledges) < 2}">
						<tr>
							<td></td>
						</tr>
					</c:if>
					<c:if test="${fn:length(knowledges) < 3}">
						<tr>
							<td></td>
						</tr>
					</c:if>
					<c:if test="${fn:length(knowledges) < 4}">
						<tr>
							<td></td>
						</tr>
					</c:if>
					<c:if test="${fn:length(knowledges) < 5}">
						<tr>
							<td></td>
						</tr>
					</c:if>

				</table>

				<table width="100%" height="17">
			        <tr>
			          <td>&nbsp;</td> 
			          <td width="30" class="tbl_more_ico_td">
			          <a href="#" class="link_portlet" onClick='mainJump("/modules/knowledge/knowledges.do?method=list&cid=${knowledgeCatalogy.id}&current_id=&kmdomain_id=&kmprop_id=&kmreader_id=&kmdept_id=","<%=Constants.USER_THEME_FRAME %>")'
			         	title="<fmt:message key="common_more" />"><fmt:message key="common_more" /></a></td>
			        </tr>
			     </table>
		</td>
	</tr>
</table>
</ff:boxportlet>

